import { createArticle, editorArticle } from '../../../../api/article'
import { ElMessage } from 'element-plus'
import i18n from '../../../../i18n'
const t = i18n.global.t
export const commitArticle = async (data: any) => {
  const res = await createArticle(data)
  // ElMessage.success(t('msg.app.success'))
  return res
}
export const editArticle = async (data: any) => {
  const res = await editorArticle(data)
  // ElMessage.success(t('msg.app.success'))
  return res
}
